package com.sinosoft.weixin.controller.vo;

/**
 * Created by huzhengying on 2017/11/17.
 */
public class LoginVo {
    public static final String Login = "LOGIN";
    public static final String INDEX = "INDEX";

    private String loginFlag;
    private int code;

    public void setLoginFlag(String loginFlag) {
        this.loginFlag = loginFlag;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static LoginVo loginFail(String loginFlag){
        LoginVo vo = new LoginVo();
        vo.setCode(400);
        vo.setLoginFlag(loginFlag);
        return vo;
    }

    public static LoginVo loginSucc(String loginFlag){
        LoginVo vo = new LoginVo();
        vo.setCode(200);
        vo.setLoginFlag(loginFlag);
        return vo;
    }

    public static String getLogin() {
        return Login;
    }

    public static String getINDEX() {
        return INDEX;
    }

    public String getLoginFlag() {
        return loginFlag;
    }

    public int getCode() {
        return code;
    }
}
